const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave:false,
  devServer: {
    port:8081,
    proxy: {
      '/api': {
        target: 'http://localhost:8080/', // 目标路径，别忘了加http和端口号
        changeOrigin: true, // 是否跨域
        pathRewrite: {
          '^/api': '' // 重写路径
        }
      }
    }
  }
})
